const checkMap = {
    'userInfo': 'SET_USER_INFO',
    'account': 'SET_ACCOUNT',
}

const vuexCheck = (store) => {
    Object.keys(checkMap).forEach(key => {
        let storage = uni.getStorageSync(key)
        if (storage) {
            store.commit(checkMap[key], storage);
        }
    })
}
export default vuexCheck
